if [ "$*" ] ; then 

	for f in "$@" ; do
	
		eval $f
	
	done
	
	[ ! "${INPUT}" ] && INPUT="${DEFAULT_APP}"
	[ "${WINEPREFIX}" ] && export WINEPREFIX
	[ "${WINEDEBUG}" -a ! "${XTERM}" ] && export WINEDEBUG
	[ "${VD_SIZE}" ] && VD="explorer /desktop=${VD_NAME},${VD_SIZE}"
	
	# For Homebrew Users
	[ -x "/usr/local/bin/wine" ] && PATH="/usr/local/bin:${PATH}"
	
	# For MacPorts Users
	[ -x "/opt/local/bin/wine" ] && PATH="/opt/local/bin:${PATH}"
	
	export PATH
	
	[ $(echo "${INPUT}" | egrep -i "\.msi$") ] && MSIEXEC="msiexec /i"
	
	START_WINE="eval wine ${VD} ${MSIEXEC} \"${INPUT}\""
	
	if [ -x "${XTERM}" ] ; then
	
		${XTERM} -geometry +0+0 -e bash -c "${START_WINE}" &
	
	else
	
		${START_WINE} &
	
	fi

fi